home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 262 / SOMC Family Forum 262.iso / Xtras / Animation Wizard.dir / 00001.ls next >
Encoding:
Text File  |  1997-05-10  |  4.7 KB  |  122 lines

  1. on startMovie
  2.   global goFunction, goBannersText, goZoomsText, goCreditsText, goBulletsText, goMarkFrame, goAnimateTitle, goSeconds, goFPS, goBaseline, goSizeMin, goSizeMax, goDelayEnter, goDelayHold, goCycles, goVisualStyles, goBanners, goBullets, goZooms, goCredits, goMotionStyles, goScoreMgr, goCastMgr, goMovieName, goPlatform
  3.   cursor(4)
  4.   set memberScreenArtStart to the number of member "OnScreenArtStart" + 1
  5.   set memberScreenArtEnd to the number of member "OnScreenArtEnd" - 1
  6.   tell the stage
  7.     set thePalette to the framePalette
  8.   end tell
  9.   if thePalette = -1 then
  10.     set goPlatform to "Mac"
  11.     go("BannersMac")
  12.   else
  13.     set goPlatform to "Pc"
  14.     go("BannersPc")
  15.   end if
  16.   InitTheGlobals()
  17.   set goScoreMgr to 0
  18.   set goScoreMgr to birth(script "ScoreMgr")
  19.   set goCastMgr to 0
  20.   set goCastMgr to birth(script "CastMgr")
  21.   set goBannersText to 0
  22.   set goBannersText to birth(script "TextField", "BannersText", "This is banners text")
  23.   set goZoomsText to 0
  24.   set goZoomsText to birth(script "TextField", "ZoomsText", "This is zoom text")
  25.   set goCreditsText to 0
  26.   set goCreditsText to birth(script "TextField", "CreditsText", "This is credits:Text" & RETURN & "And:So is this")
  27.   set goBulletsText to 0
  28.   set goBulletsText to birth(script "TextField", "BulletsText", "This is Bullets Title" & RETURN & "This is Bullets Text" & RETURN & "This is Bullets Text Longer")
  29.   set goMarkFrame to 0
  30.   set goMarkFrame to birth(script "CheckBox")
  31.   set goAnimateTitle to 0
  32.   set goAnimateTitle to birth(script "CheckBox")
  33.   set goSeconds to 0
  34.   set goSeconds to birth(script "IncrDecrValue", #int, 1, 999, 1, 5, "Seconds")
  35.   set goFPS to 0
  36.   set goFPS to birth(script "IncrDecrValue", #int, 1, 120, 1, 7, "FPS")
  37.   set theStageHeight to mGetStageHeight(goScoreMgr)
  38.   set goBaseline to 0
  39.   set goBaseline to birth(script "IncrDecrValue", #int, 1, theStageHeight, 1, 9, "Baseline")
  40.   set goSizeMin to 0
  41.   set goSizeMin to birth(script "IncrDecrValue", #int, 1, 500, 1, 22, "SizeMin")
  42.   set goSizeMax to 0
  43.   set goSizeMax to birth(script "IncrDecrValue", #int, 1, 500, 1, 24, "SizeMax")
  44.   set goDelayEnter to 0
  45.   set goDelayEnter to birth(script "IncrDecrValue", #int, 0, 60, 1, 11, "DelayEnter")
  46.   set goDelayHold to 0
  47.   set goDelayHold to birth(script "IncrDecrValue", #int, 0, 60, 1, 13, "DelayHold")
  48.   set goCycles to 0
  49.   set goCycles to birth(script "IncrDecrValue", #int, 1, 999, 1, 15, "Cycles")
  50.   set goVisualStyles to 0
  51.   set goVisualStyles to birth(script "IncrDecrCast")
  52.   set goBanners to 0
  53.   set goBanners to birth(script "Banners")
  54.   set goZooms to 0
  55.   set goZooms to birth(script "Zooms")
  56.   set goCredits to 0
  57.   set goCredits to birth(script "Credits")
  58.   set goBullets to 0
  59.   set goBullets to birth(script "Bullets")
  60.   set goFunction to 0
  61.   set goFunction to birth(script "Function")
  62.   set goMovieName to the movieName
  63.   set offS to offset(".dir", the movieName)
  64.   if offS then
  65.     delete char offS to offS + 4 of goMovieName
  66.   end if
  67.   cursor(-1)
  68. end
  69.  
  70. on stopMovie
  71.   nothing()
  72. end
  73.  
  74. on closeWindow
  75.   global goFunction, goBannersText, goZoomsText, goCreditsText, goBulletsText, goMarkFrame, goAnimateTitle, goSeconds, goFPS, goBaseline, goSizeMin, goSizeMax, goDelayEnter, goDelayHold, goCycles, goVisualStyles, goBanners, goBullets, goZooms, goCredits, goMotionStyles, goScoreMgr, goCastMgr, goMovieName, gkTransparentInk, void, goPlatform, gDevelopmentFlag, gCastNumCheckBoxOn, gCastNumCheckBoxOff, gCastNumTextAsBitmap
  76.   set goFunction to VOID
  77.   set gkTransparentInk to VOID
  78.   set goBannersText to VOID
  79.   set goZoomsText to VOID
  80.   set goCreditsText to VOID
  81.   set goBulletsText to VOID
  82.   set goMarkFrame to VOID
  83.   set goAnimateTitle to VOID
  84.   set goSeconds to VOID
  85.   set goFPS to VOID
  86.   set goBaseline to VOID
  87.   set goSizeMin to VOID
  88.   set goSizeMax to VOID
  89.   set goDelayEnter to VOID
  90.   set goDelayHold to VOID
  91.   set goCycles to VOID
  92.   set goVisualStyles to VOID
  93.   set goBanners to VOID
  94.   set goBullets to VOID
  95.   set goZooms to VOID
  96.   set goCredits to VOID
  97.   set goMotionStyles to VOID
  98.   set goScoreMgr to VOID
  99.   set goCastMgr to VOID
  100.   set goPlatform to VOID
  101.   set theName to goMovieName
  102.   set goMovieName to VOID
  103.   set gDevelopmentFlag to VOID
  104.   set gCastNumCheckBoxOn to VOID
  105.   set gCastNumCheckBoxOff to VOID
  106.   set gCastNumTextAsBitmap to VOID
  107.   forget(window theName)
  108. end
  109.  
  110. on InitTheGlobals
  111.   global gDevelopmentFlag, gCastNumCheckBoxOn, gCastNumCheckBoxOff, gCastNumTextAsBitmap, gkTransparentInk, goPlatform
  112.   if the windowList = [] then
  113.     set gDevelopmentFlag to 1
  114.   else
  115.     set gDevelopmentFlag to 0
  116.   end if
  117.   set gCastNumCheckBoxOn to the number of member ("CheckBoxOn" & goPlatform)
  118.   set gCastNumCheckBoxOff to the number of member ("CheckBoxOff" & goPlatform)
  119.   set gCastNumTextAsBitmap to the number of member "TextAsBitmap"
  120.   set gkTransparentInk to 36
  121. end
  122.